package com.taomu.app.zongchouhuli.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeUtils {
    public static String timeFomart(long time){
        Date date = new Date(time*1000);
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return format.format(date);
    }

    public static String timeFomartOnlyDate(long time){
        Date date = new Date(time*1000);
        SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd");
        return format.format(date);
    }
}
